package com.padgett.resourcemanagement.client;

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;

/**
 * Get Business Client including all services and invoices.
 * 
 * @author andyleung
 * 
 */
@SuppressWarnings("serial")
public class BusinessClientsJSP extends HttpServlet{
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException, ServletException {
		UserService userService=UserServiceFactory.getUserService();
		User user=userService.getCurrentUser();
		req.setAttribute("CurrentUserId", user.getEmail());
		RequestDispatcher dispatcher=req.getRequestDispatcher("/WEB-INF/businessclients.jsp");
		dispatcher.forward(req, resp);
	}
}
